package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author dengc
 * @since 2023-05-16
 */
@Getter
@Setter
@TableName("ams_article")
@ApiModel(value = "Article对象", description = "")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文章id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("发布人用户名")
    private String useraccount;

    @ApiModelProperty("文章标题")
    private String articletitle;

    @ApiModelProperty("文章正文")
    private String articlemain;

    @ApiModelProperty("文章图片")
    private String articleimg;

    @ApiModelProperty("文章类型")
    private String articletype;

    @ApiModelProperty("文章是否审核")
    private Integer articleisyes;

    @ApiModelProperty("用户头像")
    private String userphoto;

    @ApiModelProperty("点赞数")
    private Integer isnum;

}
